import paramiko


if __name__ == '__main__':
    pa = paramiko.SSHClient()
    pa.set_missing_host_key_policy(paramiko.AutoAddPolicy())
    pa.connect(hostname='127.0.0.1',username='visitor',password='admin2014',port=21)
    stdin,stdout,stderr = pa.exec_command('ls')
    data = stdout.read()
    print(data.decode('utf-8').strip())
